package com.iasku.constant;

import android.graphics.Bitmap;

/**
 * 常量类
 */
public class Constant {
    /** 与webservice相关的常量 */
    public static final String URL = "http://video1.iasku.net:88/service.asmx";
    public static final String URL2 = "http://video1.iasku.net:189/service1.asmx";
    public static final String URL3 = "http://video1.iasku.net:881/service1.asmx";
    
    public static final String NAMESPACE = "http://www.iasku.net:8088/";
    public static final String NAMESPACE2 = "http://iasku.517idc.com:189/";
    public static final String NAMESPACE3 = "http://115.238.93.138/";
    
    public static final String RESULT = "Result";
    
    /** 方法名 */
    //用户登录
    public static final String METHOD_LOGIN = "SchoolUserLogNew";
    public static final String METHOD_GETSCHOOLINFO = "GetSchoolInfo";
    //我的作业
    public static final String METHOD_GETMYHOMEWORK = "GetMyHomework";
    //错题本
    public static final String METHOD_GETERRORQUESTION = "GetErrorQuestion";
    //作业
    public static final String METHOD_GETEXAM = "GetExam";
    //学生答题情况
    public static final String METHOD_GETUSERANSWER = "GetUserAnswer";
    //题目信息
    public static final String METHOD_GETQUESTIONBYID = "QuestionByid";
    //提交用户答案
    public static final String METHOD_SUMITUSERANSWER = "SubmitUserAnswer";
    //提交学生的作业
    public static final String METHOD_SUBMITEXAM = "SubmitExem";
    //提交学生的附件
    public static final String METHOD_SUBMITANSWERATTACH = "SubmitAnswerAttach";
    //上传学生解答图片
    public static final String METHOD_UPLOADJPG = "UploadJpg";
    //根据作业编号获取教师信息
    public static final String METHOD_GETEXAMTEAHCER = "getExamTeacher";
    
    /** 用户登录 */
    public static final String USER_CHK_PASS = "user_chk_pass";
    public static final String USER_ID = "user_id";
    public static final String USER_NAME = "username";
    public static final String SCHOOL_ID = "school_id";
    
    public static final String USER_USERNAME_ERROR = "用户名不存在";
    public static final String USER_PASSWORD_ERROR = "密码错误";
    public static final String USER_SCHOOLID_ERROR ="学校代码不存在";
    public static final String USER_IS_LOGINING = "正在登录...";
    public static final String USER_CLASSNAME = "schoolname";
    public static String USER_SHCOOL_ID = "";
    
    /** 首页 */
    public static final CharSequence EXIT_MSG = "再按一次离开智慧课堂";
    public static final String USER_LOGIN_INFO = "user_login_info";
    public static String USER_INFO = "";
    public static String USER_TRUENAME = "";
    public static String USER_IASKUNAME = "";
    
    //public static final String EDIT_SCHOOLID = "edit_schoolid";
    public static final String EDIT_USERINFO = "edit_userinfo";
    public static final String EDIT_USERISLOG = "edit_userislog";
    
//  public static final String HELLO_STRING = "你好，";
    
    public static final String QUESTION_CHOICE = "选择题";
    public static final String QUESTION_CHOOSE = "判断题";
    
    public static String SERVERURL1 = "http://homeworkapi.iasku.com/";
    public static String SERVERURL2  = "http://homeworkapi.iasku.com/";
    public static String SERVERURL  = "http://homeworkapi.iasku.com/";
    public static final String SCHOOL_INFO = "school_info";
    public static String SCHOOL_INFO_CONTENT = "";
    public static final String USER_LOGIN_NAME = "user_login_name";
    public static String AIRSERVER1 = "";
    public static String AIRSERVER2 = "";
    public static String PICURL = "";
    
    public static final String HEAD_PIC_NAME = "/elect_head_icon.jpg";
    public static final String SAVE_HEADIMG_DIR = "/head_img/";
    public static final String HEAD_IMG_URL = "http://video1.iasku.net:189/img/";
    
    public static final String MATCHES_EMAIL = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
    public static final String MATCHES_PHONE = "^[1][3-8]+\\d{9}";
    public static final String VEDIO_PATH = "/elec_vioce_video";
    
    public static final String WEB_LOAD = "html/question?questions=";
    
    public static final String MP3_HEAD = "http://www.iasku.net/img/mp3/";
    
    public static final String DATA_UPLOAD = "data/upload/";
    
    public static boolean EXAM_IS_SUBMIT = false;
    
    public static String DECODE_MODE = "";
    
    public static int ERROR_TIMES = 0;      //允许学生出错的次数
    
    public static int YEAR_START;
    public static int MONTH_START;
    public static int DAY_START;
    
    public static int YEAR_END;
    public static int MONTH_END;
    public static int DAY_END;
    
    public static final String NETWORK_ERROR = "网络异常，请检查网络设置";
    
    //试题类型
    public static final int TYPE_DANX = 1;
    public static final int TYPE_DUOX = 2;
    public static final int TYPE_TIANK = 3;
    public static final int TYPE_JIED = 4;
    public static final int TYPE_XUANZ = 5;
    public static final int TYPE_SHIY = 6;
    
    public static Bitmap questionbt;
    
    public static final String QUESTION_STATUS_0 = "&status=0";
    public static final String QUESTION_STATUS_1 = "&status=1";
    
    public static final String ATTACH_NO = "0";
    public static final String ATTACH_YES = "1";
    
}
